Skip to content

[2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions#8877

Open
eisenwave wants to merge 1 commit intocplusplus:mainfrom
eisenwave:motions-2026-03-lwg-32
Open

[2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions#8877
eisenwave wants to merge 1 commit intocplusplus:mainfrom
eisenwave:motions-2026-03-lwg-32

Conversation

@eisenwave
Copy link
Copy Markdown
Member

Fixes #8866
Fixes NB FR-026-265 (C++26 CD).

Also fixes https://github.com/cplusplus/nbballot/issues/840

Fixes NB FR-026-265 (C++26 CD).
@eisenwave eisenwave changed the title P4052R0 Renaming saturation arithmetic functions [2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions Mar 28, 2026
#define @\defnlibxname{cpp_lib_robust_nonmodifying_seq_ops}@ 201304L // freestanding, also in \libheader{algorithm}
#define @\defnlibxname{cpp_lib_sample}@ 201603L // freestanding, also in \libheader{algorithm}
#define @\defnlibxname{cpp_lib_saturation_arithmetic}@ 202311L // freestanding, also in \libheader{numeric}
#define @\defnlibxname{cpp_lib_saturation_arithmetic}@ 202603L // freestanding, also in \libheader{numeric}
Copy link
Copy Markdown
Contributor

@StephanTLavavej StephanTLavavej Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6738 by @tkoeppe also added __cpp_lib_freestanding_numeric for the original paper. The rationale for increasing __cpp_lib_saturation_arithmetic should apply to its freestanding counterpart, right? FYI @jwakely as you approved this PR a couple of weeks ago.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC @ben-craig. IMO bumping of __cpp_lib_freestanding_meow should correspond to pure freestanding addition, so we possibly shouldn't touch them for renaming.

H-G-Hristov added a commit to H-G-Hristov/llvm-project that referenced this pull request Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2026-03 LWG Motion 32] P4052R0 Renaming saturation arithmetic functions

4 participants